<include file="Public:header" />
<style>
.header{display:none;}
.w790{margin-top:0;}
</style>
<script>
$(document).ready(function(e) {
    $('.showcurimg').each(function(index, element) {
        $(this).click(function(e) {
            $(this).find('img.img').show();
        });
		$(this).mouseleave(function(e) {
            $(this).find('img.img').hide();
        });
    });
});

function confirmaff(){
	if(!confirm('您确认要这样操作吗？')){return false;}
	var order_id = new Array();
	var attr = new Array();
	var product_id = new Array();
	$("input[name='order_id[]']").each(function(index, element) {
         if($(this).prop('checked') == true){
			order_id.push($(this).val()); 
			attr.push($("input[name='attr[]']").eq(index).val());
			product_id.push($("input[name='product_id[]']").eq(index).val());
		 }
    });
	data = {'order_id':order_id,'attr':attr,'product_id':product_id};
	if(order_id.length > 0){
	$.post('{:U('confirm')}', data, function(ret){
		success(ret.info);
	}, 'json');
	}else{
		error('请选择一个或多个记录后点击确认！');
	}
	
}
</script>	
<div class="container main"> <include file="Public:left" />
  <div class="w790">
    
    
    <div class="table_">
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
        <thead>
          <tr>
 
          <td width="17%" align="center">会员名</td>
          <td width="17%" align="center">头像</td>
            <td width="17%" align="center">收益金额</td>
            <td width="18%" align="center">备注</td>
            <td align="center">收益时间</td>
          </tr>
        </thead>
        <volist name="list" id="vo">
          <tr class="data_list">
         <td width="17%" align="center">{$vo.nickname}
</td>
         <td align="center"><img src="{$vo.headimg}" height="50"></td>
            <td align="center"><span style="color:#f00; font-weight:bold; font-size:18px;">¥{$vo.changenum}</span></td>
            
            <td align="center">
            
            
            {$vo.remark}</td>
            <td align="center">{:date('Y-m-d H:i:s', $vo['dateline'])}
              </td>
            
             
          </tr>
        </volist>
      </table>
      <div class="pages">
        
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条</label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />